'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/api/getMock', controller.home.GETMock);
  router.post('/api/login', controller.home.Login);
  router.post('/api/register', controller.home.Register);
  router.get("/api/getCode",controller.home.getCode)
  router.get("/api/BlogsMock",controller.home.BlogsMock);
  router.delete('/api/DelMock/:id', controller.home.DelMock);
  router.post('/api/Search', controller.home.Search);
  router.post('/api/addMock', controller.home.AddMock);
};
